package org.letva.toink.auditlog.model;

import java.sql.Timestamp;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Table;

import org.letva.toink.auditlog.annotation.NonAuditType;
import org.letva.toink.model.ToinkEntity;

@Entity
@Table(name = "AUDITLOG")
@NonAuditType
public class AuditLog extends ToinkEntity {

	@Column(name = "action")
	private String action;

	@Column(name = "detail")
	private String detail;

	@Column(name = "createdDate")
	private Timestamp createdDate;

	@Column(name = "entity_id")
	private Long entityId;

	@Column(name = "entity_name")
	private String entityName;

	public String getAction() {
		return action;
	}

	public void setAction(String action) {
		this.action = action;
	}

	public String getDetail() {
		return detail;
	}

	public void setDetail(String detail) {
		this.detail = detail;
	}

	public Timestamp getCreatedDate() {
		return createdDate;
	}

	public void setCreatedDate(Timestamp createdDate) {
		this.createdDate = createdDate;
	}

	public Long getEntityId() {
		return entityId;
	}

	public void setEntityId(Long entityId) {
		this.entityId = entityId;
	}

	public String getEntityName() {
		return entityName;
	}

	public void setEntityName(String entityName) {
		this.entityName = entityName;
	}

}
